package XishiBackend.services.microsite;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import XishiBackend.models.entity.Restaurant;
import XishiBackend.models.repository.RestaurantRepository;

@Service
@Transactional
public class MicrositeRestaurantService {
    @Autowired
    private RestaurantRepository rR;
    
    public Restaurant findOne(long restaurantId) {
        return rR.findOne(restaurantId);
    }
}
